package cn.wolfcode.shop.member.web;

import cn.wolfcode.shop.member.domain.User;
import cn.wolfcode.shop.member.server.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/member")
public class MemberController {

    @Autowired
    private IMemberService memberService;

    @RequestMapping("/get")
    public User get(Long id){
        return memberService.get(id);
    }
}
